package com.ynkbny.entity;


/**
 * 任务调度实体类
 */
public class AppQuartz {
    private String jobName;         //任务名称
    private String jobClassName;    //执行任务逻辑那个类名
    private String jobGroup;        //任务分组
    private String description;        //工作描述
    private String triggerName;     //触发器名称
    private String triggerGroup;    //触发器组名
    private Integer timeType;       //时间类型
    /**时间表达式，例：(5 * * * * ?) */
    private String cronExpression;  //corn表达式
    /**json格式*/
    private String invokeParam;//需要传递的参数
    private Boolean isNew;//是否作为新任务来创建



    public AppQuartz() {
    }

    public AppQuartz(String jobName, String jobClassname, String jobGroup, Integer timeType, String cronExpression, String invokeParam,
                     String description) {
        this.jobName = jobName;
        this.jobClassName = jobClassname;
        this.jobGroup = jobGroup;
        this.timeType = timeType;
        this.cronExpression = cronExpression;
        this.invokeParam = invokeParam;
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }



    //后面要用到
    public String getJobClassName() {
        return jobClassName;
    }

    public void setJobClassName(String jobClassName) {
        this.jobClassName = jobClassName;
    }


    public Integer getTimeType() {
        return timeType;
    }

    public void setTimeType(Integer timeType) {
        this.timeType = timeType;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getInvokeParam() {
        return invokeParam;
    }

    public void setInvokeParam(String invokeParam) {
        this.invokeParam = invokeParam;
    }

    public String getTriggerName() {
        return triggerName;
    }

    public void setTriggerName(String triggerName) {
        this.triggerName = triggerName;
    }

    public String getTriggerGroup() {
        return triggerGroup;
    }

    public void setTriggerGroup(String triggerGroup) {
        this.triggerGroup = triggerGroup;
    }
    public Boolean getNew() {
        return isNew;
    }

    public void setNew(Boolean aNew) {
        isNew = aNew;
    }

    @Override
    public String toString() {
        return "AppQuartz{" +
                ", jobName='" + jobName + '\'' +
                ", jobClassname='" + jobClassName + '\'' +
                ", jobGroup='" + jobGroup + '\'' +
                ", timeType=" + timeType +
                ", cronExpression='" + cronExpression + '\'' +
                ", invokeParam=" + invokeParam +
                '}';
    }
}
